//
//  JUFNPicturesCollectionCell.swift
//  WiBoPM
//
//  Created by 陈俊峰 on 2017/1/10.
//  Copyright © 2017年 陈俊峰. All rights reserved.
//

import UIKit

class JUFNPicturesCollectionCell: UICollectionViewCell {
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        setupUI()
    
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
    private func setupUI(){
        contentView .addSubview(pictureImgV)
        pictureImgV.snp.makeConstraints { (make) in
            make.edges.equalTo(contentView)
        }
        //按比例显示填充
        pictureImgV.contentMode = .scaleAspectFill
        //裁剪超出部分
        pictureImgV.clipsToBounds = true
    }
    
    //这里创建一个imageV
    lazy var pictureImgV : UIImageView = UIImageView()
}
